// src/api/generateImageAPI.ts

import { request } from "../request";

const generateImageAPI = async (prompt: string) => {
    return request("https://api.siliconflow.cn/v1/images/generations", {
        method: "post",
        headers: {
            Authorization: "Bearer sk-lghnjmlspvtlhfhnbamhymohfztxbzhmcylqujcgbviiecaz", // 请替换为你的实际 token
            "Content-Type": "application/json",
        },
        data: {
            model: "Kwai-Kolors/Kolors",
            prompt: prompt,
            image_size: "1024x1024",
            batch_size: 1,
            num_inference_steps: 20,
            guidance_scale: 7.5,
        },
    });
};

export default generateImageAPI;
